# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-convert-tnef
_pkgreal=Convert-TNEF
pkgver=0.18
pkgrel=7
pkgdesc="Perl module to read TNEF files"
url="https://metacpan.org/release/Convert-TNEF"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl"
checkdepends="perl-io-stringy perl-mime-tools"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DO/DOUGW/Convert-TNEF-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="
00cbe54169c535e6d6d3b53a06eb47808a129d6397c73b5f2b53b93efba20f81d078c16edb7b0108bc037e2cb7f1c92719633519ea17088442ea8f63864eaf07  Convert-TNEF-0.18.tar.gz
"
